import request from '@/utils/request'

// 列表
export function pageList(query) {
  return request({
    url: '/chs/drug/list',
    method: 'get',
    params: query
  })
}

// 新增
export function add(data) {
  return request({
    url: '/chs/drug/add',
    method: 'post',
    data
  })
}

// 编辑
export function edit(data) {
  return request({
    url: '/chs/drug/update',
    method: 'post',
    data
  })
}

// 删除
export function del(query) {
  return request({
    url: '/service/type/delete',
    method: 'get',
    params: query
  })
}

// 详情
export function detail(query) {
  return request({
    url: '/chs/drug/detail',
    method: 'get',
    params: query
  })
}

// 详情
export function intoHealthy(query) {
  return request({
    url: '/chs/drug/syncHealthy',
    method: 'get',
    params: query
  })
}


export function syncCHS() {
  return request({
    url: '/chs/drug/sync',
    method: 'post'
  })
}